package workflow.core;

import java.io.Serializable;
import java.util.List;
import workflow.dto.WorkflowMessage;


public abstract class WorkflowBlock implements Serializable{
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	/** nazwa bloku */
	protected String name;
	
	/** wiadomosci wejsciowe*/
	protected List<WorkflowMessage> inMessages;
	
	/** wiadomosci wyjsciowe */
	protected List<WorkflowMessage> outMessages;
	
	/** elementy nalezace do tego bloku na ktorych beda wykonywane akcje */
	protected List<WorkflowElement> elements;
	
	public abstract int excecute();

	public List<WorkflowMessage> getInMessages() {
		return inMessages;
	}

	public void setInMessages(List<WorkflowMessage> inMessages) {
		this.inMessages = inMessages;
	}

	public List<WorkflowMessage> getOutMessages() {
		return outMessages;
	}

	public void setOutMessages(List<WorkflowMessage> outMessages) {
		this.outMessages = outMessages;
	}

	public String getName() {
		return name;
	}

	public List<WorkflowElement> getElements() {
		return elements;
	}

	public void setName(String name) {
		this.name = name;
	}

	public void setElements(List<WorkflowElement> elements) {
		this.elements = elements;
	}
	
	
}
